#include <bits/stdc++.h>
using namespace std;
#define yes cout<<"YES"<<endl
#define no cout<<"NO"<<endl
using ll = long long;
void solve()
{
    ll n;
    cin >> n;
    ll cnt = 0;
    for (ll a = 1; a <= n;a++)
    {
        for (ll b = 1; b <= n;b++)
        {
            if(a==n-b)
                cnt++;
        }
    }
    cout << cnt << endl;
}
int main()
{
    int t = 1;
    cin >> t;
    while(t--)
    {
        solve();
    }
   return 0;
}
